import request from "@/utils/request";

export const getList = params => {
    return request({
      url: '/agent/list',  
      params
    })
} 



export const edit = data => {
    return request({
      url: '/agent/update',  
      data,
      method: 'POST'
    })
}
export const addAgent = data => {
    return request({
        url: '/agent/add',
        data,
        method: 'POST'
    })
}
export const templatedelete = params => {
    return request({
        url: '/template/delete',
        params
    })
}
// /template/delete?id=1